<extend name="Public/base"/>
<block name="body">
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加捐款人</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:U()}">
      <input type="hidden" name="id" value="{$data.id}" />
      <div class="form-group">
        <div class="label">
          <label>标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{$data.title}" name="title" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="clear"></div>
      <div class="form-group">
        <div class="label">
          <label>内容：</label>
        </div>
        <div class="field">
              <!-- 加载编辑器的容器 -->
              <script id="container" name="content" type="text/plain">{$data.content|html_entity_decode}</script>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button id="send" class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
<!-- 配置文件 -->
<script type="text/javascript" src="__STATIC__/js/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__STATIC__/js/ueditor.all.min.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    // var ue = UE.getEditor('container');
    $(function(){
        var ue = UE.getEditor('container',{
            serverUrl :'{:U('Admin/File/ueditor')}',
            initialFrameWidth: 800,
            initialFrameHeight: 400,
        });
    });


            
</script>

</block>